package com.ocom.common.vo.access;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class GroupVo implements Serializable {

    private static final long serialVersionUID = -5716342794492126564L;

    @NotNull(message = "商家编号不能为空")
    @JsonProperty("companyID")
    private Long companyID;

    @NotEmpty(message = "区域编号不能为空")
    @JsonProperty("areaNo")
    private String areaNo;

    @NotNull(message = "权限组编号不能为空")
    @JsonProperty("groupNo")
    private Long groupNo;

    @NotEmpty(message = "权限组名称不能为空")
    @JsonProperty("groupName")
    private String groupName;

}
